Package slides.workingwithslide

Source Code of slides.workingwithslide.ApacheSlideTitle

package slides.workingwithslide;

import java.io.FileOutputStream;

import org.apache.poi.hslf.model.Slide;
import org.apache.poi.hslf.model.TextBox;
import org.apache.poi.hslf.usermodel.SlideShow;

public class ApacheSlideTitle
{
  public static void main(String[] args) throws Exception
  {
    SlideShow ppt = new SlideShow();
      Slide slide = ppt.createSlide();
      TextBox title = slide.addTitle();
      title.setText("Hello, World!");
     
      //save changes
      FileOutputStream out = new FileOutputStream("data/Apache_SlideTitle.ppt");
      ppt.write(out);
      out.close();
     
    System.out.println("Presentation with Title Saved.");
  }
}
TOP

Related Classes of slides.workingwithslide.ApacheSlideTitle

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.